<h2><?php __('create_batch') ?></h2>
<form action="add" method="post" id="batches_form" accept-charset="utf-8">
<?php echo $form->error('Batch.name', __('name_batch_error', true));?>
<?php echo $form->input('Batch.name', array('label' => __('name', true))); ?>
<br />
<?php echo $form->label('Description'); ?>
<?php echo $form->textArea('Batch.description', array('rows'=>'10','cols'=>'70')); ?>
<?php echo $form->hidden('Batch.project_id', array ('value' => $project_id)); ?>
<?php echo $form->hidden('project_name', array ('value' => $project_name)); ?>

<h3><?php __('milestones') ?></h3>
<div id="milestone">
<?php __('specify_milestone') ?>
<?php echo $ajax->link(__('create_new_milestone', true), '/milestones/addform',array('update'=>'milestone')); ?>
</div>
<div id="milestones">
	<?php echo $this->renderElement('milestones/table'); ?>
</div>
<label></label>
<?php echo $form->submit(__('create', true), array('div' => false)); ?>&nbsp;
<?php echo $link->projectLink($project_id, $project_name, __('cancel', true), '/batches/index'); ?>
<?php $form->end(); ?>